import request from '@/utils/request'

export const getList = data => {
  return request({
    url: '/api/hero/getList',
    method: 'post',
    data
  })
}
export const Add = data => {
  return request({
    url: '/api/hero/add',
    method: 'post',
    data
  })
}

export const Edit = data => {
  return request({
    url: '/api/hero/edit',
    method: 'put',
    data
  })
}

export const Del = data => {
  return request({
    url: '/api/hero/delete',
    method: 'delete',
    data
  })
}
